<template>
	<view class="detail" v-for="(v,i) in dataArray" :key="i">
		<view class="introduce">
			<view></view>
			<view>教练介绍</view>
		</view>
		<view v-html="v.coachText"></view>
		<view class="introduce">
			<view></view>
			<view>课程介绍</view>
		</view>
		<view v-html="v.classText"></view>
	</view>
</template>

<script>
	import myRequest from '../../../utils/myRequest.js'
	import {
		reactive,
		toRefs,
		onMounted,
	} from 'vue'
	import store from '../../../store/index.js'
	export default {
		setup() {
			let data = reactive({
				myid: '',
				dataArray: [],
				getData() {
					data.dataArray = [];
					let myArry = store.state.Group.GroupArr;
					data.dataArray.push(myArry)
				}
			})
			onMounted(() => {
				data.getData()
			})
			return {
				...toRefs(data)
			}
		}
	}
</script>

<style>
	@import url('~@/static/font-li/font2022/iconfont.css');

	.detail {
		padding: 20rpx 20rpx 130rpx 20rpx;
	}

	.introduce {
		display: flex;
		align-items: center;
	}

	.introduce>view:first-child {
		height: 50rpx;
		width: 10rpx;
		background: #2979FF;
	}

	.introduce>view:last-child {
		font-size: 40rpx;
		font-weight: bold;
		margin-left: 10rpx;
	}

	.image_coach {
		margin-top: 10rpx;
	}

	.image_coach>.image {
		width: 400rpx;
		height: 300rpx;
	}

	.text {
		margin: 20rpx 0;
	}

	.text>.view {
		margin-top: 15rpx;
	}

	.couText {
		margin-top: 15rpx;
		line-height: 60rpx;
	}

	.couIntroduce>.view {
		line-height: 60rpx;
		padding: 0 50rpx 0 0;
	}

	.couIntroduce>.view:nth-of-type(1) {
		font-size: 30rpx;
		font-weight: bold;
		margin-top: 40rpx;
	}

	.couIntroduce>.view:last-child {
		display: flex;
		justify-content: center;
	}

	.myImage {
		width: 300rpx;
		height: 300rpx;
		margin-top: 20rpx;
	}
</style>
